import request from '@/utils/request'

// 查询公开信息列表
export function listOpen(query) {
  return request({
    url: '/service/open/list',
    method: 'get',
    params: query
  })
}

// 查询公开信息详细
export function getOpen(id) {
  return request({
    url: '/service/open/' + id,
    method: 'get'
  })
}

// 新增公开信息
export function addOpen(data) {
  return request({
    url: '/service/open',
    method: 'post',
    data: data
  })
}

// 修改公开信息
export function updateOpen(data) {
  return request({
    url: '/service/open',
    method: 'put',
    data: data
  })
}

// 删除公开信息
export function delOpen(id) {
  return request({
    url: '/service/open/' + id,
    method: 'delete'
  })
}
